﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace finalProjectGUI
{
    public partial class InputMessageDialog : Form
    {
        public InputMessageDialog()
        {
            InitializeComponent();

        }
        /// <summary>
        /// Constructor with parameters for title and input description
        /// </summary>
        /// <param name="Title"></param>
        /// <param name="inputDescription"></param>
        public InputMessageDialog(String Title,String inputDescription)
        {
            InitializeComponent();
            this.Text = Title;
            labelInputDescription.Text = inputDescription;
        }
        /// <summary>
        /// the input text message
        /// </summary>
        private string inputText = "";
        /// <summary>
        /// Comments for the input
        /// </summary>
        public string Input
        {
            get { return inputText; }
            set
            {
                inputText = value;
                textBoxInputMessage.Text = inputText;
            }
        }

        /// <summary>
        /// OK button pressed get new meesage
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonOK_Click(object sender, EventArgs e)
        {
            inputText = textBoxInputMessage.Text;
        }
       
    }
}
